
/**
 * Klasse   PersonComparator tbv. project KantineSimulatie om personen met elkaar te vergelijken
 * @author  (Stephan Veenstra, Michel Jansma) 
 * @version (2012.10.11)
 */
public class PersonComparator {

    /**
     * @method PersonComparator
     * @params null
     * @info   Constructor PersonComparator klasse
     * @return null
     */
    public PersonComparator() {
    }
    
    /**
     * @method main
     * @params <String[]> args
     * @info   __FILL__
     * @return null
     */
    public static void main(String[]args) {
        //Teacher instantie 
        Person teacher = new Docent();
        //Student instantie 
        Person student = new Student(1000001, "Steve", "Mclaren", 'M', new int[]{ 8, 12, 1992 }, "Informatica");
        //Print details bij equals methode call
        System.out.println("teacher.equals(student) = {" + teacher.equals(student) + "}");
        //Print details bij referentie gelijkheid check
        System.out.println("(teacher == student) = {" + (teacher == student) + "}");
    }
    
    /**
     * @method testString
     * @params null
     * @info   Check string 
     * @return null
     */
    public static void testString() {
        //String instance
        String name  = "Bert";
        //String instance
        String name1 = "Berd";
        name1 /* Update sting */ = "Bert";
        //Boolean instance
        boolean b = (name == name1);
        //Check boolean
        System.out.println("boolean b = (name == name1) = {" + b + "}");
        //Check (==)
        System.out.println("name == name1 = {" + (name == name1) + "}");
        //Check equals 
        System.out.println("name.equals(name1) = {" + name.equals(name1) + "}");
    }
    
    /**
     * @method testOutputPerson
     * @params null
     * @info   Check string 
     * @return null
     */
    public static void testOutputPerson() {
        //Person instance
        Person p = new Person(101, "Mi", "Ja", 'M', new int[]{ 18, 9, 1992 });
        System.out.println(p);
    }
    
    /**
     * @method testTMP
     * @params null
     * @info   !_TMP
     * @return null
     */
    public static void testTMP() {
        //TMP
        System.out.println((int)2.56);
        System.out.println(25*0.01);
        Person test = new Docent();
        System.out.println(test instanceof Person);
        
    }
    
}
